Javascript / FireFox help needed

Javascript / FireFox help needed

am 20.07.2007 19:39:00 von DutchMaster11

Can anyone tell me why the following code will work in IE7, but in in
Firefox (or any of its sub-browsers, like Flock)? Click on the link
that says "Alpha Communications / Alpha Media " in red. The Table row
below that one should toggle on/off every time its clicked. In
firefox, however, the TR never goes away and it seems like more TRs
are added the more its clicked... please help!! :)

Thanks!

Dutch









Personal Menu

charset=3Diso-8859-1">







link=3D"#006600" vlink=3D"#006600" alink=3D"#006600" bgcolor=3D"E2E7F0"
text=3D"#000000">





CellPadding=3D0 CellSpacing=3D0>






















width=3D140
onMouseOver=3D"this.className=3D'adheaderhl'"
onMouseOut=3D"this.className=3D'adheader'"
Class=3DadHeader>

Building Mgrs.



onClick=3D"window.location=3D'http://keith/cgi-bin/site.exe?
Module=3Daddperson&Refresh=3D140880778&SessionID=3DsF4eF3tM7 t7&Addtype=3DMa=
nager'"
style=3D"cursor:hand"
width=3D100%
onMouseOver=3D"this.className=3D'sidebaroptionhl'"
onMouseOut=3D"this.className=3D'sidebaroption'"
Class=3Dsidebaroption>


   
Add New Building Mgr.



onClick=3D"window.location=3D'http://keith/cgi-bin/site.exe?
Module=3Dpersonalmenu&Refresh=3D140880778&action=3DView&Sess ionID=3DsF4eF3t=
M7t7&Type=3Dmanager'"
style=3D"cursor:hand"
width=3D100%
onMouseOver=3D"this.className=3D'sidebaroptionhl'"
onMouseOut=3D"this.className=3D'sidebaroption'"
Class=3Dsidebaroption>

   
View my Building Mgrs.







width=3D140
onMouseOver=3D"this.className=3D'adheaderhl'"
onMouseOut=3D"this.className=3D'adheader'"
Class=3DadHeader>


Building Options



onClick=3D"window.location=3D'http://keith/cgi-bin/site.exe?
Module=3Dbuildinginformation&Refresh=3D140880778&action=3Dad d&SessionID=3Ds=
F4eF3tM7t7'"
style=3D"cursor:hand"
width=3D100%
onMouseOver=3D"this.className=3D'sidebaroptionhl'"
onMouseOut=3D"this.className=3D'sidebaroption'"
Class=3Dsidebaroption>


   
Add New Building






width=3D140
onMouseOver=3D"this.className=3D'adheaderhl'"
onMouseOut=3D"this.className=3D'adheader'"
Class=3DadHeader>

My Account





onClick=3D"window.location=3D'http://keith/cgi-bin/site.exe?
Module=3Dpersonalmenu&Refresh=3D140880778&SessionID=3DsF4eF3 tM7t7'"
style=3D"cursor:hand"
width=3D100%
onMouseOver=3D"this.className=3D'sidebaroptionhl'"
onMouseOut=3D"this.className=3D'sidebaroption'"
Class=3Dsidebaroption>


   
My Personal Menu



onClick=3D"window.location=3D'http://keith/cgi-bin/site.exe?
Module=3Dpersonalinformation&Refresh=3D140880778&SessionID=3 DsF4eF3tM7t7'"
style=3D"cursor:hand"
width=3D100%
onMouseOver=3D"this.className=3D'sidebaroptionhl'"
onMouseOut=3D"this.className=3D'sidebaroption'"
Class=3Dsidebaroption>


   
Edit My Information



onClick=3D"window.location=3D'http://keith/cgi-bin/site.exe?
Module=3Dchildaccounts&Refresh=3D140880778&SessionID=3DsF4eF 3tM7t7'"
style=3D"cursor:hand"
width=3D100%
onMouseOver=3D"this.className=3D'sidebaroptionhl'"
onMouseOut=3D"this.className=3D'sidebaroption'"
Class=3Dsidebaroption>


   
Manage Child Accounts



onClick=3D"window.location=3D'http://keith/cgi-bin/site.exe?
Module=3Dchangepassword&Refresh=3D140880778&SessionID=3DsF4e F3tM7t7'"
style=3D"cursor:hand"
width=3D100%
onMouseOver=3D"this.className=3D'sidebaroptionhl'"
onMouseOut=3D"this.className=3D'sidebaroption'"
Class=3Dsidebaroption>


   
Change My Password



onClick=3D"window.location=3D'http://keith/cgi-bin/site.exe?
Module=3Dindex&Refresh=3D140880778&killlogin=3DY&sID=3DsF4eF 3tM7t7'"
style=3D"cursor:hand"
width=3D100%
onMouseOver=3D"this.className=3D'sidebaroptionhl'"
onMouseOut=3D"this.className=3D'sidebaroption'"
Class=3Dsidebaroption>


   
Logout












Width=3D80%>





Personal Menu

You are logged in as an 'Installer'




onMouseOver=3D"this.className=3D'sidebaroptionhl'"
onMouseOut=3D"this.className=3D'sidebaroptionwh'" border=3D0 iD=3D"tableA00=
01"
width=3D80% cellpadding=3D2 cellspacing=3D0>





onClick=3D"toggleTR('A0001')">
class=3Dsidebaroption cellpadding=3D1>
Class=3Dsidebaroptiontextbig>

  • Alpha Communications / Alpha Media


  • Pyt=3DTmap&GET%A0Map=3DGet+Map&addr=3D42%20Central%20Drive&c sz=3DFarmingdale
    %20NY','newone',700,600);" style=3D"cursor:hand"
    onMouseOver=3D"this.className=3D'sidebaroptionhl'"
    onMouseOut=3D"this.className=3D'sidebaroption'" border=3D0 width=3D90%
    class=3Dsidebaroption cellpadding=3D1>
    align=3Dcenter>
    ## User[s] located at:



    42 Central Drive

    Farmingdale, NY 11735-1202


    (Click to view map)



    Module=3Dbuildinginformation&Refresh=3D140880778&action=3DEd it&SessionID=3D=
    sF4eF3tM7t7&ID=3D1'"
    style=3D"cursor:hand" onMouseOver=3D"this.className=3D'sidebaroptionhl'"
    onMouseOut=3D"this.className=3D'sidebaroption'" border=3D0 width=3D90%
    class=3Dsidebaroption cellpadding=3D1>

    align=3Dleft> Class=3Dsidebaroptiontext align=3Dleft> color=3D990000>View / Update Building Information



    Class=3Dsidebaroptiontext>Jay Adams
    Class=3Dsidebaroptiontext>Keith Maurino

    Class=3Dsidebaroptiontext>Jason Goldberg
    Building Manager:
    Installer:
    Sales Partner:
















    Copyright =A9 2007 Target=3D"new">Alpha Communications and www.alphamedia.net/" Target=3D"new">Alpha Media, Inc. All Rights
    Reserved.

    Re: Javascript / FireFox help needed

    am 20.07.2007 21:27:28 von lws4art

    DutchMaster11 wrote:
    > Can anyone tell me why the following code will work in IE7, but in in
    > Firefox (or any of its sub-browsers, like Flock)? Click on the link
    > that says "Alpha Communications / Alpha Media " in red. The Table row
    > below that one should toggle on/off every time its clicked. In
    > firefox, however, the TR never goes away and it seems like more TRs
    > are added the more its clicked... please help!! :)
    >
    > Thanks!
    >
    > Dutch
    >
    >
    >
    >
    >
    >


    Post URL to your page not the html

    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com

    Re: Javascript / FireFox help needed

    am 20.07.2007 21:33:30 von DutchMaster11

    The page is not public, or I would have. the HTML file works fine on
    it's own, even though the pictures dont display.

    Re: Javascript / FireFox help needed

    am 20.07.2007 22:13:06 von lws4art

    DutchMaster11 wrote:
    > The page is not public, or I would have. the HTML file works fine on
    > it's own, even though the pictures dont display.
    >
    1) please quote properly
    2) well make it public, upload at least a sample page somewhere

    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com

    Re: Javascript / FireFox help needed

    am 21.07.2007 06:04:50 von cwdjrxyz

    On Jul 20, 12:39 pm, DutchMaster11 wrote:
    > Can anyone tell me why the following code will work in IE7, but in in
    > Firefox (or any of its sub-browsers, like Flock)? Click on the link
    > that says "Alpha Communications / Alpha Media " in red. The Table row
    > below that one should toggle on/off every time its clicked. In
    > firefox, however, the TR never goes away and it seems like more TRs
    > are added the more its clicked... please help!! :)


    I am not quoting the very long code again. One can copy the code, take
    it to the W3C validator and paste it into an input box there. Since
    you do not include a Doctype, I had to guess html 4.01 transitional to
    be closest to what you have. If you try to validate as anything else
    between html 2.0 and html 4.01 strict, there are many more errors. The
    page could not be xhtml because of the lack of special xhtml symbols.
    The problem is that about 75 errors are indicated in the code
    validated as html transitional. Some are just fairly formal things
    that may not cause problems on most current browsers, but others are
    not. So my first suggestion is to get the page to validate as html
    4.01 transitional. Even this may not solve your problem, because you
    use quite a bit of script which the W3C validator does not check. But
    since script can often be more difficult to correct than html, getting
    the html right at first is a good place to start. If the script turns
    out to be the problem, it may then pay to post in a javascript group
    if someone here does not see the cause of the script problem. You
    should consider that those who post here get paid very little - zero,
    in fact - and code as long as you posted could take a very long time
    to evaluate. Thus it pays to post the url of a valid working example
    that shows the problem. You need only include enough code in the
    example page to show the problem, with the bulk of the code having
    nothing related to display of the problem removed.